﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Enterprise
{
    public class WebPage : DataManager<WebPage.Data>
    {
        private string _ID;
        public WebPage() : base() 
        {
            this._ID = Config.CreateID();
        }

        public WebPage(string id)
        {
            this._ID = id;
            LoadData();
        }

        protected override string GetID()
        {
            return this._ID;
        }

        public string PageTemplate
        {
            get { return _data.PageTemplate; }
            set { _data.PageTemplate = value; }
        }

        public class Data
        {
            public string PageTemplate = string.Empty;
        }
    }
}
